Fixed database initiation