database module finished