few fixes + mysql create db script