database support

added pdo mysql and finished sqlite (needs testing)