not professional
trying to get db stuff working