Incorrect language variable

Corrected language variable
fixed missing database connection
fixed mysqli_insert_id()

e.g.: mysqli_insert_id($_database)
Merge pull request #8 from pyst4r/master

Some fixes