renamed files, basic functions for db manipulation ready