changed to mysql and wired up resources to dao