hooked pieces up to database