Testing db and excluding pyc