Attempt 2 to get db to work