added configuration parser, moved db directory