You only need config.php under the include folder, you can delete the other (take a backup of the file before delete).

Unable to get last insert ID
It seems your signup table is not proper. If you can PM me your phpmyadmin login details, i can check it.