added function to get database data, added gitignore file