Database configuration

Changed some configurations to get Entity Framework working correctly.