Fixed create script for db