Bugfix: check for possibly not present variable before using it
Bugfix: corrections for the query to create table *_entries
Bugfix: corrections for the query to create table *_userdata