added collation to database creation
fixed problem with running as root
fixed problem with running as root