Started work on database and api modules